<div class="box">
  <div class="box-heading"><?php echo $heading_title; ?></div>
  <div class="box-content">
    <div class="box-product">
<?php $video = 0; ?>
      <?php foreach ($products as $product) { ?>
      <div>
        <?php if ($product['thumb']) { ?>
        <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
        <?php } ?>
        <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
        <?php if ($product['price']) { ?>
        <div class="price">
<?php if($product_video[$video]['id'] != '') { ?>
 						<div ><a onclick="popup('playerDiv<?php echo $product_video[$video]['id']; ?>',<?php echo $player_size['width']; ?>,<?php echo $player_size['height']; ?>)" ><img src="image/hdwplayer/dis_video.jpg" title="<?php echo $product['name']; ?> Videos"/></a></div>
 						<div id="blanket" style="display:none;"></div>
						<div  id="playerDiv<?php echo $product_video[$video]['id']; ?>" style="display:none;">
           					<a onclick="popup('playerDiv<?php echo $product_video[$video]['id']; ?>',1,1)" class="close" title="close">X</a>
           					<?php echo $product_video[$video]['embed']; ?>
           				</div>
          		<?php } ?>
                <?php $video++; ?>
          <?php if (!$product['special']) { ?>
          <?php echo $product['price']; ?>
          <?php } else { ?>
          <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
          <?php } ?>
        </div>
        <?php } ?>
        <?php if ($product['rating']) { ?>
        <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
        <?php } ?>
        <div class="cart">				<?php if ($product['boton_venta'] == 1) {?>		    <input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" />			<?php } else { ?>			   <input type="button" value="Como comprar" onclick="alert('Nuestros datos de Contacto:\nNombre: Rafael Morales\nDireccion:\nPoniente 112\nEmail: rmorales@motormarket.tv\nTelefono:5556341234')" class="button" />			<?php } ?>						</div>
      </div>
      <?php } ?>
    </div>
  </div>
</div>
<?php if(isset($product_video)) { ?>
				<?php foreach($product_video as $product) { ?>
				<?php if($product['id'] != '') { ?>
					<style type="text/css">
								#playerDiv<?php echo $product['id']; ?> {
							position:absolute;
							border: 4px solid #C0C0C0;
							border-radius: 5px;
							z-index: 9002;
							width: <?php echo $player_size['width']; ?>px;
							height: <?php echo $player_size['height']; ?>px;
						}
						
						#playerDiv<?php echo $product['id']; ?> a.close {
							display:none;
						}
						#playerDiv<?php echo $product['id']; ?>:hover a.close {
							display:block;
							position:absolute;
							top:5px; right:5px
						}
								</style>
								<?php } ?>
					<?php } } ?>
							<style type="text/css">
						    #blanket {
						   background-color:#111;
						   opacity: 0.40;
						   
						   position:absolute;
						   z-index: 9001;
						   top:0px;
						   left:0px;
						   width:100%;
						}
						a.close {
						opacity: 0.5;
						text-decoration:none;
						font-weight:bold;
						font-size: 15px;
						font-family: "Verdana";
						color:#fff;
						}
						a.close:hover {
						color:#fff;
						opacity: 1;
						}
						 </style>
						
					<script type="text/javascript" src="catalog/view/javascript/videopopup.js"></script>